package com.yanmaohu.yulia.bean;

/**
 * @author Bright Lee
 */
public final class ExtractExpression implements NumericValueFunction {

    private int beginIndex;
    private int endIndex;
    private ExtractField extractField;
    private ExtractSource extractSource;

    public ExtractExpression(int beginIndex,
                             int endIndex,
                             ExtractField extractField,
                             ExtractSource extractSource) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.extractField = extractField;
        this.extractSource = extractSource;
    }

    @Override
    public int getBeginIndex() {
        return beginIndex;
    }

    @Override
    public int getEndIndex() {
        return endIndex;
    }

    public ExtractField getExtractField() {
        return extractField;
    }

    public ExtractSource getExtractSource() {
        return extractSource;
    }

}
